home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / pack / xfh132.lzh / XFH / src / libmygcc / string / Makefile < prev    next >
Makefile  |  1993-01-17  |  449b  |  29 lines

  1. # Makefile using BMake and GCC.
  2.  
  3. CC = gcc
  4. DEBUG =
  5. DEF =
  6. #OPT =
  7. OPT = -O2 -fomit-frame-pointer -funroll-loops
  8. INC = -Igcc:os-include/include/ -I../
  9. CFLAGS = $(DEBUG) $(OPT) $(INC) $(DEF)
  10.  
  11. OBJECTS = index.o strcasecmp.o strcat.o strcmp.o strcpy.o strlen.o \
  12.       strncat.o strncpy.o
  13.  
  14.  
  15. all: $(OBJECTS)
  16.  
  17.  
  18. .c.o:
  19.    $(CC) -c $(CFLAGS) $*.c
  20.  
  21. .s.o:
  22.    copy $*.s x.c
  23.    gcc -traditional -E x.c -o x.s
  24.    gcc -c $(CFLAGS) x.s -o $*.o
  25.  
  26. %.s:
  27.  
  28. .SUFFIXES: .c .s .o
  29.